//
//  realTimeSportTypeView.m
//  CoolMove
//
//  Created by 谢伟康 on 15/11/6.
//  Copyright © 2015年 CA. All rights reserved.
//

#import "realTimeSportTypeView.h"

@implementation realTimeSportTypeView

- (void)awakeFromNib{
    [self removeBarDetailViewAfter:1];
}

- (void)removeBarDetailViewAfter:(NSInteger)second
{
    [self performSelector:@selector(removeBarDetailViewRightNow) withObject:nil afterDelay:second];
}

- (void)removeBarDetailViewRightNow
{
    [UIView animateWithDuration:0.5 animations:^{
        self.alpha = 0.0f;
    } completion:^(BOOL finished) {
        [self removeFromSuperview];
    }];
}

-(void)setContent:(NSString *)content
{
    self.contentLabel.text = content;
}

@end
